Documentation


animal::container_traits< T[sz]> Struct Template Reference

#include <container_traits.h>

List of all members.


Detailed Description

template<typename T, std::size_t sz>
struct animal::container_traits< T[sz]>

Abstraction of a container: overlaoded version for arrays.

Definition at line 57 of file container_traits.h.

Public Types

typedef T * iterator
 iterator type

typedef iterator iter_type
 iterator type, just for backward compatibility

typedef T value_type
 entry value type

typedef value_typereference
 type of a reference to an entry

typedef std::size_t size_type
 size type


Static Public Member Functions

iterator begin (T(&array)[sz])
 get an iterator on the first element

iterator end (T(&array)[sz])
 get an iterator on the following of the last element

size_type size (T(&)[sz])
 number of elements


Member Typedef Documentation

template<typename T, std::size_t sz>
typedef iterator animal::container_traits< T[sz]>::iter_type
 

iterator type, just for backward compatibility

Definition at line 60 of file container_traits.h.

template<typename T, std::size_t sz>
typedef T* animal::container_traits< T[sz]>::iterator
 

iterator type

Definition at line 59 of file container_traits.h.

template<typename T, std::size_t sz>
typedef value_type& animal::container_traits< T[sz]>::reference
 

type of a reference to an entry

Definition at line 62 of file container_traits.h.

template<typename T, std::size_t sz>
typedef std::size_t animal::container_traits< T[sz]>::size_type
 

size type

Definition at line 63 of file container_traits.h.

template<typename T, std::size_t sz>
typedef T animal::container_traits< T[sz]>::value_type
 

entry value type

Definition at line 61 of file container_traits.h.


Member Function Documentation

template<typename T, std::size_t sz>
iterator animal::container_traits< T[sz]>::begin T &  array[sz]  )  [inline, static]
 

get an iterator on the first element

Definition at line 66 of file container_traits.h.

template<typename T, std::size_t sz>
iterator animal::container_traits< T[sz]>::end T &  array[sz]  )  [inline, static]
 

get an iterator on the following of the last element

Definition at line 68 of file container_traits.h.

template<typename T, std::size_t sz>
size_type animal::container_traits< T[sz]>::size T(&)  [sz]  )  [inline, static]
 

number of elements

Definition at line 70 of file container_traits.h.


The documentation for this struct was generated from the following file:
Generated on Thu Dec 23 13:52:29 2004 by doxygen 1.3.6